Hi everyone,
does anyone know how I can consider my panel data within a multilevel mixed model?
My panel data is xtset id t.
I had two questions about that.
First:
I tried to write:
xtset id t
xtmixed $ylist $xlist
But the reply doesn't seem to consider the panel data.
So I wrote:
xtset id t
xtmixed $ylist $xlist || id:, mle
It still doesn't seem to calculate the mixed effect for my panel data.
The commands:
xtmixed $ylist $xlist || id: || t:
xtmixed $ylist $xlist || id: || t:, mle
mixed y x || _all: R.id || _all: R.t
didn't work at all or the system hung.
What did I do wrong?
Actually I wanted to receive a basic overview of all of my variables and after that create multiple levels.
Second:
My data consists of three main time periods (each: containing multiple weeks).
In the second period there is a treatment.
For this treatment there are independent variables within the second time period and I would be interested in the effect of the treatment on the outcome and how the other independent variables (those variables which exist in every period such as age kids and so on) influence the treatment's effect on the outcome.
Is it correct to create a "Random-effects equations" for the case if the person got treated or not and an additional "Random-effects equations" for the three different periods? Do I receive the information I look for from it?
Originally I tried to use the DiD-estimator, but I couldn't consider any additional independent variables or metric variables. This was why I was told to try out the mixed effects model instead.
For example, my Stata 13.0 isn't working, because of the "mixed $ylist $xlist || _all: R.id || _all: R.t" command right now.
Thank you very much for your help!!
Best wishes,
Eva
does anyone know how I can consider my panel data within a multilevel mixed model?
My panel data is xtset id t.
I had two questions about that.
First:
I tried to write:
xtset id t
xtmixed $ylist $xlist
But the reply doesn't seem to consider the panel data.
So I wrote:
xtset id t
xtmixed $ylist $xlist || id:, mle
It still doesn't seem to calculate the mixed effect for my panel data.
The commands:
xtmixed $ylist $xlist || id: || t:
xtmixed $ylist $xlist || id: || t:, mle
mixed y x || _all: R.id || _all: R.t
didn't work at all or the system hung.
What did I do wrong?
Actually I wanted to receive a basic overview of all of my variables and after that create multiple levels.
Second:
My data consists of three main time periods (each: containing multiple weeks).
In the second period there is a treatment.
For this treatment there are independent variables within the second time period and I would be interested in the effect of the treatment on the outcome and how the other independent variables (those variables which exist in every period such as age kids and so on) influence the treatment's effect on the outcome.
Is it correct to create a "Random-effects equations" for the case if the person got treated or not and an additional "Random-effects equations" for the three different periods? Do I receive the information I look for from it?
Originally I tried to use the DiD-estimator, but I couldn't consider any additional independent variables or metric variables. This was why I was told to try out the mixed effects model instead.
For example, my Stata 13.0 isn't working, because of the "mixed $ylist $xlist || _all: R.id || _all: R.t" command right now.
Thank you very much for your help!!
Best wishes,
Eva
Comment